package com.ht.module.job.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * <p>
 * 定时任务执行日志
 * </p>
 *
 * @author hejialun
 * @since 2025-08-11
 */

@TableName("job_log")
@Data
@Accessors(chain = true)
public class JobLog{

	@Schema(description ="主键ID")
    @TableId
    private String id;

	@Schema(description ="定时任务id")
    private String jobId;

	@Schema(description ="任务名称")
    private String jobName;

	@Schema(description ="任务组名")
    private String jobGroup;

	@Schema(description ="开始时间")
    private LocalDateTime startTime;

	@Schema(description ="结束时间")
    private LocalDateTime endTime;

	@Schema(description ="执行状态（SUCCESS，FAIL）")
    private String status;

	@Schema(description ="错误信息")
    private String errorMessage;


}
